xm: Add "tap2" to attach blocktap disks to VM
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 3 Sep 2009 08:49:41 +0000 (09:49 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 3 Sep 2009 08:49:41 +0000 (09:49 +0100)
I detected a problem when using XenAPI.  When I started a VM by
using xm create command, blocktap disks were not attached to the
VM.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xm/xenapi_create.py

index bb816f278b4130239216a0156b7374357b0b527a..cb7130bebcd8faaffdde13411edb66c231562346 100644 (file)
@@ -594,7 +594,7 @@ class sxp2xml:
                    if len(child) > 0 and child[0] == "device"]
                    
         vbds_sxp = map(lambda x: x[1], [device for device in devices
-                                        if device[1][0] in ("vbd", "tap")])
+                                        if device[1][0] in ("vbd", "tap", "tap2")])
 
         vifs_sxp = map(lambda x: x[1], [device for device in devices
                                         if device[1][0] == "vif"])